﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order_withdrawal.aspx.cs" Inherits="SF.Ucenter.admin.goods.orders.order_withdrawal" %>
<%@ Import Namespace="SF.Common" %>

<!DOCTYPE html>
<%--提现处理记录表--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>提现处理记录</title>
    <link href="../../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8" src="../../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/common.js"></script>
    <style type="text/css">
        .keywordtip {
            display: block;
            float: left;
            margin: 0;
            padding: 0 5px;
            height: 30px;
            line-height: 28px;
            font-size: 12px;
            color: #444;
        }
    </style>
    <script type="text/javascript">
        //执行回传函数
        function ExePostBack2(objId, objmsg) {
            if ($(".checkall input:checked").size() < 1) {
                $.dialog.alert('对不起，请选中您要操作的记录！');

                return false;
            }
            var msg = "确定要更改状态吗？";
            if (arguments.length == 2) {
                msg = objmsg;
            }
            $.dialog.confirm(msg, function () {
                __doPostBack(objId, '');
            });
            return false;
        }

    </script>
    
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../../First.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>提现处理记录</span>
        </div>
        <!--/导航栏-->

        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <div class="l-list">
                        <ul class="icon-list">
                            <li style="padding-top:7px;"><span>次数：<asp:Label ID="lblNum" runat="server" /></span>&nbsp;<span>金额：<asp:Label ID="lblTotalMoney" runat="server" /></span></li>
                        </ul>
                        <ul class="icon-list">
                            <li>
                                <asp:LinkButton ID="btnDeal" runat="server" CssClass="del" OnClientClick="return ExePostBack2('btnDeal');" OnClick="btnDeal_Click"><i></i><span>处理</span></asp:LinkButton></li>
                        </ul>
                        <div class="menu-list">
                            <div class="rule-single-select">
                                <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                                    <asp:ListItem Value="0">未处理</asp:ListItem>
                                    <asp:ListItem Value="1">已处理</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="r-list">
                        <span class="keywordtip">筛选</span>
                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                        <span class="keywordtip">时间</span>
                        <asp:TextBox ID="txtStartTime" runat="server" CssClass="keyword" ReadOnly="true"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                        <span class="keywordtip">- </span>
                        <asp:TextBox ID="txtEndTime" runat="server" CssClass="keyword" ReadOnly="true"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />

                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click">查询</asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th width="4%">选择</th>
                        <th align="left" width="6%">状态信息</th>
                        <th align="left" width="14%">订单编号</th>
                        <th align="left" width="7%">提现金额</th>
                        <th align="left" width="8%">微信头像</th>
                        <th align="left" width="8%">微信昵称</th>
                        <th align="left" width="10%">时间</th>
                        <th align="left" width="8%">姓名</th>
                        <th align="left" width="7%">银行卡类型</th>
                        <th align="left" width="10%">银行卡号</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" /><asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td><%# Eval("status").ToString().Equals("1")?"已处理":"未处理" %></td>
                    <td style='padding-left:5px'><%# Eval("orderID") %></td>
                    <td><%# Eval("money") %></td>
                    <td><img style="width:50px;height:50px;" alt="用户头像" src="<%# getPhotoUriByNum(Eval("userNum").ToString()) %>" /></td>
                    <td><%# getRealNameByNum(Eval("userNum").ToString()) %></td>
                    <td><%# string.Format("{0:g}",Eval("addTime"))%></td>
                    <td><%# getBankNameByNum(Eval("bankNum").ToString()) %></td>
                    <td><%# getBankTypeByNum(Eval("bankNum").ToString()) %></td>
                    <td><%# getBankCardByNum(Eval("bankNum").ToString()) %></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"10\">暂无用户提现记录</td></tr>" : ""%>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->


        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>


